/**
 *
 */
package cn.dw.sg.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author aubrey
 * @date  下午7:56:22
 * 
 */
@Aspect
@Component
public class LogAdvice {
	
//	@Pointcut("execution(* com.server.service.impl2.*Impl.*(..))")
	@Pointcut("execution(* cn.dw.sg.controller.AuthorityController.*(..))")
	public void log() {};
	
	
	
	@Before("log()")
	public void before(JoinPoint jointPont) {
		System.out.println("===========before方法==========");
	}
	
	@After("log()")
	public void after(JoinPoint jointPont) {
		System.out.println("#############after方法#############");
	}
	

}
